package com.flycard.order.feign;

import com.flycard.order.feign.fallback.ProductFeignClientFallBack;
import com.flycard.product.Product;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
@FeignClient(value ="service-product",fallback = ProductFeignClientFallBack.class)
public interface ProductFeignClient {



    @GetMapping("/api/product/product/{id}")
    Product getProductById(@PathVariable("id") Long id);



}
